<template name="nuevo">
    <h2>Nuevo veh&iacute;culo</h2>
    <form method="post" action="{{nuevo_vehiculo}}">
        <table>
            <tr>
                <th>
                    <span>*</span>
                    Nombre
                </th>
                <td>
                    <input type="text" name="vehiculo[nombre]" style="width: 200px" value="{{['vehiculo']['nombre']}}" />
                </td>
            </tr>
            <tr>
                <th>
                    <span>*</span>
                    Patente
                </th>
                <td>
                     <input type="text" name="vehiculo[patente]" style="width: 200px" value="{{['vehiculo']['patente']}}" id="patente" />
                </td>
            </tr>
            <tr>
                <th>
                    <span>*</span>
                    N&uacute;mero veh&iacuteculo
                </th>
                <td>
                    <input type="text" name="vehiculo[numero_vehiculo]" style="width: 200px" value="{{['vehiculo']['numero_vehiculo']}}" id="numero_vehiculo" />
                </td>
            </tr>
            <tr>
                <th>
                    <span>*</span>
                    Identificador GPS
                </th>
                <td>
                    <input type="text" name="vehiculo[identificador_gps]" style="width: 200px" value="{{['vehiculo']['identificador_gps']}}" />
                </td>
            </tr>
        </table>
        <br/>
        <input type="submit" value="Guardar nuevo veh&iacute;culo" class="make_submit_button" />
        <br/>
        <br/>
        <span class="requerido">*</span><span>Campos requeridos</span>
    </form>
    <script type="text/javascript">
        $(function(){
            onlyPatente('patente');
			onlyNumbers('numero_vehiculo');
        });

    </script>
</template>